/**
 * Static class MouseManager. Start a listener on mousemove event and keep the mouse position
 *
 * @author Maxime Ollagnier
 */
MouseManager = function() {
};

/** Mouse cursor position */
MouseManager.cursor = {'x' : 0, 'y' : 0};

/** Mouse last move time */
MouseManager.lastMoveTime = new Date().getTime();

/**
 * keep cursor position up to date
 */
$(document).mousemove(function(event) {
	MouseManager.cursor.x = event.pageX;
	MouseManager.cursor.y = event.pageY;
});
